#!/bin/bash
# author: Lison
# url:lison.cc
# desc: New cpp file and then g++ compile and then run it

if [ ! $1 ]
then
    echo "File name required"
else
    vim $1.cpp && g++ $1.cpp -o $1.out && ./$1.out

fi
